package com.desire.mapper;

import com.desire.entity.Goods;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.Map;

/**
 * @author LittleDesire
 * @description
 * @date 2022-04-12 周二 16:34
 * @since 17
 */
@Mapper
public interface GoodsMapper {
    int save(Goods goods);

    @Select("select goodsPic,goods_name from oadb.t_goods where id = #{id}")
    Map<String, byte[]> getPic(Integer id);
}
